{% extends 'base.html' %}

{% block main %}

<div id="formwrapper">
  <h3>平台服务部信息查询系统</h3>
  <form method="post" action="/display" name="staff_manage" id="staff_manage">
    <fieldset>
    <legend>多条件查询</legend>

    <div>
      <label for="popo">泡泡号</label>
      <input type="text" name="popo" id="popo" size="18" maxlength="30" />
      <br/>
    </div>

    <div>
      <label for="组名">组名</label>
		<select name = "group_name">
		 <option></option>
		 <option>综合组</option>
		 <option>营销组</option>
		 <option>运维支持组</option>
		 <option>销售&网站组</option>
 		</select>
      <br/>
    </div>

    <div>
      <label for="性别">性别</label>
		<select name = "gender">
		 <option></option>
		 <option>F</option>
		 <option>M</option>
 		</select>
      <br/>
    </div>

    <input name="query" type="submit" class="buttom" value="查询" />
    </fieldset>
  </form>

  <form method="post" action="/mmratio" name="mm_ratio" id="mm_ratio">
    <fieldset>
    <legend>MM比例查询</legend>
    <input name="query" type="submit" class="buttom" value="查询" />
    </fieldset>
  </form>


  <form method="post" action="/groupsumm" name="group_summ" id="group_summ">
    <fieldset>
    <legend>GROUP统计</legend>
    <input name="query" type="submit" class="buttom" value="查询" />
    </fieldset>
  </form>
</div>

<table>
<thead>
	<tr>
	{% if staff_infos[0]%}
	{% for i in staff_infos[0].keys()%}
		<th>{{i}}</th>
	{% endfor %}
	{%endif%}
	</tr>
</thead>
<tbody>
	{% for i in staff_infos %}
		{% if i %}
		<tr class= "row_odd">
			{% for j in i.values() %}
				<td> {{j}} </td>
			{%endfor%}
		</tr>
		{%endif%}
	{% endfor %}
<tbody>
</table>

{% endblock %}
